package com.allwees.bs.c.module.order.context.compute.handler;

import com.allwees.bs.c.module.order.context.bo.CouponComputeBo;
import com.allwees.bs.c.module.order.context.bo.UserCouponBo;
import com.allwees.bs.c.module.order.context.compute.ComputeHandler;
import com.allwees.bs.c.module.order.context.compute.strategy.coupon.CouponStrategy;
import org.springframework.stereotype.Component;

@Component
public class CouponHandler extends ComputeHandler {

    @Override
    public void handler(UserCouponBo coupon, CouponComputeBo request) {
        CouponStrategy.strategy(coupon, request);
        doNext(coupon, request);
    }
}
